package io.renren.modules.noc.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import io.renren.common.page.PageData;
import io.renren.common.service.impl.CrudServiceImpl;
import io.renren.modules.noc.dao.TExhHallDao;
import io.renren.modules.noc.dto.TExhHallDTO;
import io.renren.modules.noc.entity.TExhHallEntity;
import io.renren.modules.noc.service.TExhHallService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * 展馆表
 *
 * @author zgw, 995115107@qq.cm
 * @since 3.0 2022-04-23
 */
@Service
@RequiredArgsConstructor
public class TExhHallServiceImpl extends CrudServiceImpl<TExhHallDao, TExhHallEntity, TExhHallDTO> implements TExhHallService {
    private  final TExhHallDao tExhHallDao;

    @Override
    public QueryWrapper<TExhHallEntity> getWrapper(Map<String, Object> params){
        QueryWrapper<TExhHallEntity> wrapper = new QueryWrapper<>();


        return wrapper;
    }
    @Override
    public PageData<TExhHallDTO> queryPage(Map<String, Object> params){
        IPage<TExhHallDTO> page = tExhHallDao.selectPageVo(getPage(params,"",false));
        return new PageData<TExhHallDTO>(page.getRecords(),page.getTotal());
    }

}